<?xml version="1.0" encoding="UTF-8"?>

<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
	
	<xsl:include href="../../admin.xsl" />
	<xsl:include href="../../common/form.xsl" />
	<xsl:include href="../../cp/path.xsl" />
	
	<!-- Запускаем рендер страницы -->
	<xsl:template match="/data">
		<html>
		
		<head>
			<title>
				<xsl:value-of select="$pageTitle" />
			</title>
			<xsl:call-template name="meta-head" />
			<link rel="stylesheet" href="{$baseURI}/css/admin/forms.css" type="text/css" media="all" />
			<link rel="stylesheet" href="{$baseURI}/css/admin/modules.css" type="text/css" media="all" />
			<script type="text/javascript" src="{$baseURI}/js/admin/modules.js" />
			
			<script type="text/javascript">
				var allowCheckDirs = true;
				
				$(document).ready(function() {
					exportLoadFiles('');
				});
			</script>
		</head>
		<body>
			<xsl:call-template name="admin-header" />
			
			<div id="blocks">
				<div id="blocks_inner" />
			</div>
			
			<div id="content">
				<div id="content_inner">
					<xsl:apply-templates select="response" />
				</div>
			</div>
			
			<xsl:call-template name="footer" />
		</body>
		</html>
	</xsl:template>
	
	<xsl:template match="response">
		<xsl:param name="oModule" select="object[@type='explay_module']" />
		
		<div id="path">
			<xsl:apply-templates select="document('xmodule://cp/getPath/0;system;modules')/data/response" mode="cp-path">
				<xsl:with-param name="activeLink">1</xsl:with-param>
			</xsl:apply-templates>
		</div>
		
		<h1>
			<xsl:text>Удаление модуля «</xsl:text>
			<xsl:value-of select="$oModule/property[@name='title']/value" />
			<xsl:text>»</xsl:text>
		</h1>
		
		<form action="{$baseURI}/admin/system/delete_module/{@module-id}" method="post">
			<h2>Файлы</h2>
			<p>Выберите файлы, которые следует удалить.</p>
			
			<div id="files" class="export_files" />
			
			<p>
				<input type="submit" name="do" value="Удалить модуль" />
			</p>
		</form>
	</xsl:template>

	
</xsl:stylesheet>